package com.abhinav.designPatterns.strategy;

import java.io.File;
import java.util.ArrayList;

//Context
public class CompressionContext {
	private CompressionStrategy strategy;  
	
	//this can be set at runtime by the application preferences
	public void setCompressionStrategy(CompressionStrategy strategy) {
		this.strategy = strategy;
	}
	
	public void createArchive(ArrayList<File> files){
		strategy.compressFiles(files);
	}
}
